package es.mahulo.battleship.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import es.mahulo.battleship.api.dao.GameConfigDao;
import es.mahulo.battleship.model.GameConfig;

@Repository
public class GameConfigDaoImpl implements GameConfigDao {
	private EntityManager entityManager;
	@PersistenceContext  
    public void setEntityManager(EntityManager entityManager)   {  
		this.entityManager = entityManager;  
    }  

	@Override
	public GameConfig find(Long id) {
		return entityManager.find(GameConfig.class, id);
	}
	
	
}
